﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using BoostSite.Demo.Definitions.Base.PropertyBlockTypes;
using EPiServer.DataAbstraction;
using EPiServer.DataAnnotations;
using EPiServer.SpecializedProperties;

namespace BoostSite.Demo.Definitions.Templates.PropertyBlockTypes.Navigation
{
	[ContentType(AvailableInEditMode = false,
				 DisplayName = "Links with title",
				 Description = "A collection of links with a title",
				 GroupName = BlockGroupNames.PropertyBlocks)]
	public class LinkListWithTitle : BasePropertyBlockType
	{
		[Display(
			Name = "MainTitle",
			Description = "",
			GroupName = SystemTabNames.Content,
			Order = 1)]
		public virtual string Title { get; set; }
		
		[Display(
			Name = "Links",
			Description = "",
			GroupName = SystemTabNames.Content,
			Order = 2)]
		public virtual LinkItemCollection Links { get; set; }
	}
}
